package cn.cxy.wanandroid.network

import retrofit2.http.GET
import retrofit2.http.Path

interface ApiService {
    @GET("data/chapters.json")
    suspend fun getChapters(): BaseResponse<List<Chapter>>

    @GET("data/list/{chapterId}/{pageNum}.json")
    suspend fun getArticle(
        @Path("chapterId") chapterId: Int,
        @Path("pageNum") pageNum: Int
    ): BaseResponse<Articles>
}